<%@ include file="../common/base.jsp" %>
<%@ page contentType= "text/html;charset=utf-8" %>
<%@ page language="java" import="com.octopus.optiworks.service.ConfigurationService"%>
<% boolean isAutoOperatorDate = ConfigurationService.getInstance().isAutoOpeartorDate() ; %>

<c:forEach var="step90Data" varStatus="status" items="${product.step90Datas}">
<c:if test="${not empty step90}">
<input type="hidden" name="id" value="<c:out value="${step90Data.id}" />">
<input type="hidden" name="product" value="<c:out value="${step90Data.product.id}" />">
<input type="hidden" name="className" value="com.octopus.optiworks.model.Step90Data">
<input type="hidden" name="step" value="step90">

<table width="100%">
	<tr>
		<td align="left" width="60%">
			<strong style="color:#A0A0FF">Step 90 Soldering (焊接)(MPI: ZY-60-082, SWI-Soldering-001S)</strong>
		</td>
		<td align="right" width="40%">
			<strong style="color:#A0A0FF">测试用光源编号:
				<c:if test="${not empty step90Data.testLightCode}">
					<input type="text" name="testLightCode" value="<c:out value="${step90Data.testLightCode}" />">
				</c:if>
				<c:if test="${empty step90Data.testLightCode}">
					<input type="text" name="testLightCode" value="<c:out value="${currentUser.testLightCode}" />">
				</c:if>
			</strong>
		</td>
	</tr>
</table>
<table rules="all" width="100%" bgcolor="#F0F0FF">
	<tr>
		<td align="center" rowspan="3">
		</td>
		<td align="center" rowspan="3">
			Transmission IL(dB)
		</td>
		<td align="center" rowspan="3">
			PDL(dB)
		</td>
		<td align="center">
			Directivity(dB)
		</td>
		<td align="center" colspan="4">
			RL(dB)
		</td>
		<td align="center" rowspan="3">
			Operator/Date
		</td>
	</tr>
	<tr>
		<td align="center" rowspan="2">
			P->R(ITU)
		</td>
		<td align="center">
			P端
		</td>
		<td align="center" colspan="3">
			C端
		</td>
	</tr>
	<tr>
		<td align="center">
			(ITU)
		</td>
		<td align="center">
			Adj-L
		</td>
		<td align="center">
			ITU
		</td>
		<td align="center">
			Adj-R
		</td>
	</tr>
	<tr>
		<td align="center">
			焊接前
		</td>
		<td align="center">
			<input type="text" name="transIlParm1" size="3" value="<c:out value="${step90Data.transIlParm1}" />">
		</td>
		<td align="center">
			<input type="text" name="pdlParm1" size="3" value="<c:out value="${step90Data.pdlParm1}" />">
		</td>
		<td align="center">
			<input type="text" name="prParm1" size="3" value="<c:out value="${step90Data.prParm1}" />">
		</td>
		<td align="center">
			<input type="text" name="pituParm1" size="3" value="<c:out value="${step90Data.pituParm1}" />">
		</td>
		<td align="center">
			<input type="text" name="cadjlParm1" size="3" value="<c:out value="${step90Data.cadjlParm1}" />">
		</td>
		<td align="center">
			<input type="text" name="cituParm1" size="3" value="<c:out value="${step90Data.cituParm1}" />">
		</td>
		<td align="center">
			<input type="text" name="cadjrParm1" size="3" value="<c:out value="${step90Data.cadjrParm1}" />">
		</td>
		<td align="center" rowspan="2">
			<% if(isAutoOperatorDate){ %>
			<c:out value="${step90Data.operator}" />
			/
			<fmt:formatDate  value="${step20Data.date}" pattern="yyyy-MM-dd HH:mm"/>
			<% }else{ %>
			<select name="operator">
				<c:forEach var="user" items="${users}">
				<option value="<c:out value="${user.username}" />" 
				<c:if test="${(null==step90Data.operator && user.username==currentUser.username) || (null!=step90Data.operator && user.username==step90Data.operator)}">
				selected="selected"
				</c:if>
				><c:out value="${user.username}" /></option>
				</c:forEach>
				</select>
				/<br>
				<input type="text" name="date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<fmt:formatDate  value="${step90Data.date}" pattern="yyyy-MM-dd HH:mm"/>">
			<% } %>
		</td>
	</tr>
	<tr>
		<td align="center">
			焊接后
		</td>
		<td align="center">
			<input type="text" name="transIlParm2" size="3" value="<c:out value="${step90Data.transIlParm2}" />">
		</td>
		<td align="center">
			<input type="text" name="pdlParm2" size="3" value="<c:out value="${step90Data.pdlParm2}" />">
		</td>
		<td align="center">
			<input type="text" name="prParm2" size="3" value="<c:out value="${step90Data.prParm2}" />">
		</td>
		<td align="center">
			<input type="text" name="pituParm2" size="3" value="<c:out value="${step90Data.pituParm2}" />">
		</td>
		<td align="center">
			<input type="text" name="cadjlParm2" size="3" value="<c:out value="${step90Data.cadjlParm2}" />">
		</td>
		<td align="center">
			<input type="text" name="cituParm2" size="3" value="<c:out value="${step90Data.cituParm2}" />">
		</td>
		<td align="center">
			<input type="text" name="cadjrParm2" size="3" value="<c:out value="${step90Data.cadjrParm2}" />">
		</td>
	</tr>
</table>
</c:if>

<c:if test="${empty step90}">
<table width="100%">
	<tr>
		<td align="left" width="70%">
			<strong>Step 90 Soldering (焊接)(MPI: ZY-60-082, SWI-Soldering-001S)</strong>
			<shiro:hasPermission name="process:edit">
			<c:if test="${empty step90 && empty View}">
			&nbsp;&nbsp;
			<a href="./sedit.o?productId=<c:out value='${product.id}'/>&step=step90">
				<fmt:message key="Edit" />
			</a>
			</c:if>
			</shiro:hasPermission>
		<td align="right" width="40%">
			<strong>测试用光源编号:<c:out value="${step90Data.testLightCode}" /></strong>
		</td>
	</tr>
</table>
<table rules="all" width="100%">
	<tr>
		<td align="center" rowspan="3">
		</td>
		<td align="center" rowspan="3">
			Transmission IL(dB)
		</td>
		<td align="center" rowspan="3">
			PDL(dB)
		</td>
		<td align="center">
			Directivity(dB)
		</td>
		<td align="center" colspan="4">
			RL(dB)
		</td>
		<td align="center" rowspan="3">
			Operator/Date
		</td>
	</tr>
	<tr>
		<td align="center" rowspan="2">
			P->R(ITU)
		</td>
		<td align="center">
			P端
		</td>
		<td align="center" colspan="3">
			C端
		</td>
	</tr>
	<tr>
		<td align="center">
			(ITU)
		</td>
		<td align="center">
			Adj-L
		</td>
		<td align="center">
			ITU
		</td>
		<td align="center">
			Adj-R
		</td>
	</tr>
	<tr>
		<td align="center">
			焊接前
		</td>
		<td align="center">
			<c:out value="${step90Data.transIlParm1}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.pdlParm1}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.prParm1}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.pituParm1}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.cadjlParm1}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.cituParm1}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.cadjrParm1}" />
		</td>
		<td align="center" rowspan="2">
			<c:out value="${step90Data.operator}" />
			/
			<fmt:formatDate  value="${step90Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
	</tr>
	<tr>
		<td align="center">
			焊接后
		</td>
		<td align="center">
			<c:out value="${step90Data.transIlParm2}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.pdlParm2}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.prParm2}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.pituParm2}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.cadjlParm2}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.cituParm2}" />
		</td>
		<td align="center">
			<c:out value="${step90Data.cadjrParm2}" />
		</td>
	</tr>
</table>
</c:if>
</c:forEach>


